<!DOCTYPE HTML>
<html>
	<head>
		<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
		<title>OdbcConnection Class Reference</title>
		<meta id="xcode-display" name="xcode-display" content="render"/>
		<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
		<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
		<meta name="generator" content="appledoc 2.2 (build 961)" />
	</head>
	<body>
		<header id="top_header">
			<div id="library" class="hideInXcode">
				<h1><a id="libraryTitle" href="../index.html">Odbc </a></h1>
				<a id="developerHome" href="../index.html">Datakonsulten AB</a>
			</div>
			
			<div id="title" role="banner">
				<h1 class="hideInXcode">OdbcConnection Class Reference</h1>
			</div>
			<ul id="headerButtons" role="toolbar">
				<li id="toc_button">
					<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
				</li>
				<li id="jumpto_button" role="navigation">
					<select id="jumpTo">
	<option value="top">Jump To&#133;</option>
	
	<option value="overview">Overview</option>
	
	
	
	
	<option value="tasks">Tasks</option>
	
	
	
	
	
	<option value="properties">Properties</option>
	
	<option value="//api/name/autocommit">&nbsp;&nbsp;&nbsp;&nbsp;autocommit</option>
	
	<option value="//api/name/catalogs">&nbsp;&nbsp;&nbsp;&nbsp;catalogs</option>
	
	<option value="//api/name/connected">&nbsp;&nbsp;&nbsp;&nbsp;connected</option>
	
	<option value="//api/name/currentCatalog">&nbsp;&nbsp;&nbsp;&nbsp;currentCatalog</option>
	
	<option value="//api/name/currentSchema">&nbsp;&nbsp;&nbsp;&nbsp;currentSchema</option>
	
	<option value="//api/name/currentUser">&nbsp;&nbsp;&nbsp;&nbsp;currentUser</option>
	
	<option value="//api/name/dataSource">&nbsp;&nbsp;&nbsp;&nbsp;dataSource</option>
	
	<option value="//api/name/dbmsName">&nbsp;&nbsp;&nbsp;&nbsp;dbmsName</option>
	
	<option value="//api/name/env">&nbsp;&nbsp;&nbsp;&nbsp;env</option>
	
	<option value="//api/name/hdbc">&nbsp;&nbsp;&nbsp;&nbsp;hdbc</option>
	
	<option value="//api/name/schemaTerm">&nbsp;&nbsp;&nbsp;&nbsp;schemaTerm</option>
	
	<option value="//api/name/schemas">&nbsp;&nbsp;&nbsp;&nbsp;schemas</option>
	
	<option value="//api/name/tableTypes">&nbsp;&nbsp;&nbsp;&nbsp;tableTypes</option>
	
	<option value="//api/name/transactionIsolation">&nbsp;&nbsp;&nbsp;&nbsp;transactionIsolation</option>
	
	<option value="//api/name/username">&nbsp;&nbsp;&nbsp;&nbsp;username</option>
	
	
	
	
	<option value="class_methods">Class Methods</option>
	
	<option value="//api/name/connectionWithDataSource:username:password:">&nbsp;&nbsp;&nbsp;&nbsp;+ connectionWithDataSource:username:password:</option>
	
	
	
	
	<option value="instance_methods">Instance Methods</option>
	
	<option value="//api/name/commit">&nbsp;&nbsp;&nbsp;&nbsp;- commit</option>
	
	<option value="//api/name/connect:username:password:">&nbsp;&nbsp;&nbsp;&nbsp;- connect:username:password:</option>
	
	<option value="//api/name/disconnect">&nbsp;&nbsp;&nbsp;&nbsp;- disconnect</option>
	
	<option value="//api/name/execDirect:">&nbsp;&nbsp;&nbsp;&nbsp;- execDirect:</option>
	
	<option value="//api/name/initWithDataSource:username:password:">&nbsp;&nbsp;&nbsp;&nbsp;- initWithDataSource:username:password:</option>
	
	<option value="//api/name/newStatement">&nbsp;&nbsp;&nbsp;&nbsp;- newStatement</option>
	
	<option value="//api/name/rollback">&nbsp;&nbsp;&nbsp;&nbsp;- rollback</option>
	
	<option value="//api/name/tablesCatalog:schema:table:tableTypes:">&nbsp;&nbsp;&nbsp;&nbsp;- tablesCatalog:schema:table:tableTypes:</option>
	
	
	
</select>
				</li>
			</ul>
		</header>
		<nav id="tocContainer" class="isShowingTOC">
			<ul id="toc" role="tree">
				
<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>




<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Creating connection and connecting to a database">Creating connection and connecting to a database</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Commit and rollback">Commit and rollback</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Creating OdbcStatement">Creating OdbcStatement</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Executing SQL">Executing SQL</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Retrieving information about connection and database">Retrieving information about connection and database</a></span></li>
	
</ul></li>





<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#properties">Properties</a></span><ul>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/autocommit">autocommit</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/catalogs">catalogs</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/connected">connected</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/currentCatalog">currentCatalog</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/currentSchema">currentSchema</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/currentUser">currentUser</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/dataSource">dataSource</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/dbmsName">dbmsName</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/env">env</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/hdbc">hdbc</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/schemaTerm">schemaTerm</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/schemas">schemas</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/tableTypes">tableTypes</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/transactionIsolation">transactionIsolation</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/username">username</a></span></li>
	
</ul></li>



<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#class_methods">Class Methods</a></span><ul>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/connectionWithDataSource:username:password:">connectionWithDataSource:username:password:</a></span></li>
	
</ul></li>



<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/commit">commit</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/connect:username:password:">connect:username:password:</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/disconnect">disconnect</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/execDirect:">execDirect:</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/initWithDataSource:username:password:">initWithDataSource:username:password:</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/newStatement">newStatement</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/rollback">rollback</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/tablesCatalog:schema:table:tableTypes:">tablesCatalog:schema:table:tableTypes:</a></span></li>
	
</ul></li>


			</ul>
		</nav>
		<article>
			<div id="contents" class="isShowingTOC" role="main">
				<a title="OdbcConnection Class Reference" name="top"></a>
				<div class="main-navigation navigation-top">
					<ul>
	<li><a href="../index.html">Index</a></li>
	<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
				</div>
				<div id="header">
					<div class="section-header">
						<h1 class="title title-header">OdbcConnection Class Reference</h1>
					</div>		
				</div>
				<div id="container">	
					
					<div class="section section-specification"><table cellspacing="0"><tbody>
						<tr>
	<td class="specification-title">Inherits from</td>
	<td class="specification-value">NSObject</td>
</tr><tr>
	<td class="specification-title">Declared in</td>
	<td class="specification-value">OdbcConnection.h</td>
</tr>
						</tbody></table></div>
					
                    
                    
					
					<div class="section section-overview">
						<a title="Overview" name="overview"></a>
						<h2 class="subtitle subtitle-overview">Overview</h2>
						<p>This class represents a connection to an ODBC data source.</p>

<p>The class is used to connect to a database, to create <a href="../Classes/OdbcStatement.html">OdbcStatement</a> and to
retrieve information about the database.</p>
					</div>
					
					
					
					
					
					<div class="section section-tasks">
						<a title="Tasks" name="tasks"></a>
						<h2 class="subtitle subtitle-tasks">Tasks</h2>
						
						
						<a title="Creating connection and connecting to a database" name="task_Creating connection and connecting to a database"></a>
						<h3 class="subsubtitle task-title">Creating connection and connecting to a database</h3>

						<ul class="task-list">
							<li>
	<span class="tooltip">
		<code><a href="#//api/name/connectionWithDataSource:username:password:">+&nbsp;connectionWithDataSource:username:password:</a></code>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/initWithDataSource:username:password:">&ndash;&nbsp;initWithDataSource:username:password:</a></code>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/connect:username:password:">&ndash;&nbsp;connect:username:password:</a></code>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/disconnect">&ndash;&nbsp;disconnect</a></code>
	</span>
	
	
</li>
						</ul>
						
						
						<a title="Commit and rollback" name="task_Commit and rollback"></a>
						<h3 class="subsubtitle task-title">Commit and rollback</h3>

						<ul class="task-list">
							<li>
	<span class="tooltip">
		<code><a href="#//api/name/commit">&ndash;&nbsp;commit</a></code>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/rollback">&ndash;&nbsp;rollback</a></code>
	</span>
	
	
</li>
						</ul>
						
						
						<a title="Creating OdbcStatement" name="task_Creating OdbcStatement"></a>
						<h3 class="subsubtitle task-title">Creating OdbcStatement</h3>

						<ul class="task-list">
							<li>
	<span class="tooltip">
		<code><a href="#//api/name/newStatement">&ndash;&nbsp;newStatement</a></code>
	</span>
	
	
</li>
						</ul>
						
						
						<a title="Executing SQL" name="task_Executing SQL"></a>
						<h3 class="subsubtitle task-title">Executing SQL</h3>

						<ul class="task-list">
							<li>
	<span class="tooltip">
		<code><a href="#//api/name/execDirect:">&ndash;&nbsp;execDirect:</a></code>
	</span>
	
	
</li>
						</ul>
						
						
						<a title="Retrieving information about connection and database" name="task_Retrieving information about connection and database"></a>
						<h3 class="subsubtitle task-title">Retrieving information about connection and database</h3>

						<ul class="task-list">
							<li>
	<span class="tooltip">
		<code><a href="#//api/name/tablesCatalog:schema:table:tableTypes:">&ndash;&nbsp;tablesCatalog:schema:table:tableTypes:</a></code>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/connected">&nbsp;&nbsp;connected</a></code>
	</span>
	<span class="task-item-suffix">property</span>
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/transactionIsolation">&nbsp;&nbsp;transactionIsolation</a></code>
	</span>
	<span class="task-item-suffix">property</span>
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/autocommit">&nbsp;&nbsp;autocommit</a></code>
	</span>
	<span class="task-item-suffix">property</span>
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/dataSource">&nbsp;&nbsp;dataSource</a></code>
	</span>
	<span class="task-item-suffix">property</span>
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/username">&nbsp;&nbsp;username</a></code>
	</span>
	<span class="task-item-suffix">property</span>
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/catalogs">&nbsp;&nbsp;catalogs</a></code>
	</span>
	<span class="task-item-suffix">property</span>
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/schemas">&nbsp;&nbsp;schemas</a></code>
	</span>
	<span class="task-item-suffix">property</span>
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/tableTypes">&nbsp;&nbsp;tableTypes</a></code>
	</span>
	<span class="task-item-suffix">property</span>
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/currentCatalog">&nbsp;&nbsp;currentCatalog</a></code>
	</span>
	<span class="task-item-suffix">property</span>
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/currentUser">&nbsp;&nbsp;currentUser</a></code>
	</span>
	<span class="task-item-suffix">property</span>
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/schemaTerm">&nbsp;&nbsp;schemaTerm</a></code>
	</span>
	<span class="task-item-suffix">property</span>
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/currentSchema">&nbsp;&nbsp;currentSchema</a></code>
	</span>
	<span class="task-item-suffix">property</span>
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/dbmsName">&nbsp;&nbsp;dbmsName</a></code>
	</span>
	<span class="task-item-suffix">property</span>
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/env">&nbsp;&nbsp;env</a></code>
	</span>
	<span class="task-item-suffix">property</span>
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/hdbc">&nbsp;&nbsp;hdbc</a></code>
	</span>
	<span class="task-item-suffix">property</span>
	
</li>
						</ul>
						
					</div>
					
					
					
					
					
					<div class="section section-methods">
						<a title="Properties" name="properties"></a>
						<h2 class="subtitle subtitle-methods">Properties</h2>
						
						<div class="section-method">
	<a name="//api/name/autocommit" title="autocommit"></a>
	<h3 class="subsubtitle method-title">autocommit</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Sets or gets auto<a href="#//api/name/commit">commit</a> property of connection.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>@property (nonatomic) bool autocommit</code></div>

    
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">OdbcConnection.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/catalogs" title="catalogs"></a>
	<h3 class="subsubtitle method-title">catalogs</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Names of catalogs in database.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>@property (readonly, nonatomic) NSArray *catalogs</code></div>

    
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">OdbcConnection.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/connected" title="connected"></a>
	<h3 class="subsubtitle method-title">connected</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>True if connection is connected to a database, false otherwise.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>@property (readonly) bool connected</code></div>

    
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">OdbcConnection.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/currentCatalog" title="currentCatalog"></a>
	<h3 class="subsubtitle method-title">currentCatalog</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Name of current database catalog.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>@property (readonly, nonatomic) NSString *currentCatalog</code></div>

    
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">OdbcConnection.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/currentSchema" title="currentSchema"></a>
	<h3 class="subsubtitle method-title">currentSchema</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Name of current schema in database.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>@property (readonly, nonatomic) NSString *currentSchema</code></div>

    
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">OdbcConnection.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/currentUser" title="currentUser"></a>
	<h3 class="subsubtitle method-title">currentUser</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Name of current database user. May be different from <a href="#//api/name/username">username</a> of the connection.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>@property (readonly, nonatomic) NSString *currentUser</code></div>

    
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">OdbcConnection.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/dataSource" title="dataSource"></a>
	<h3 class="subsubtitle method-title">dataSource</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>ODBC data source name.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>@property (readonly) NSString *dataSource</code></div>

    
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">OdbcConnection.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/dbmsName" title="dbmsName"></a>
	<h3 class="subsubtitle method-title">dbmsName</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Database vendor name.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>@property (readonly, nonatomic) NSString *dbmsName</code></div>

    
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">OdbcConnection.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/env" title="env"></a>
	<h3 class="subsubtitle method-title">env</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>OdbcEnvironment object. For internal use only.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>@property (readonly) OdbcEnvironment *env</code></div>

    
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">OdbcConnection.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/hdbc" title="hdbc"></a>
	<h3 class="subsubtitle method-title">hdbc</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Original low level API handle for a connection. For internal use only.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>@property (readonly) void *hdbc</code></div>

    
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">OdbcConnection.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/schemaTerm" title="schemaTerm"></a>
	<h3 class="subsubtitle method-title">schemaTerm</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Term used for <a href="#//api/name/schemas">schemas</a> in the database.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>@property (readonly, nonatomic) NSString *schemaTerm</code></div>

    
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">OdbcConnection.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/schemas" title="schemas"></a>
	<h3 class="subsubtitle method-title">schemas</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Names of schemas in database.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>@property (readonly, nonatomic) NSArray *schemas</code></div>

    
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">OdbcConnection.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/tableTypes" title="tableTypes"></a>
	<h3 class="subsubtitle method-title">tableTypes</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Names of table types supported by the database.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>@property (readonly, nonatomic) NSArray *tableTypes</code></div>

    
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">OdbcConnection.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/transactionIsolation" title="transactionIsolation"></a>
	<h3 class="subsubtitle method-title">transactionIsolation</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Sets or gets transaction isolation level</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>@property (nonatomic) unsigned long transactionIsolation</code></div>

    
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">OdbcConnection.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/username" title="username"></a>
	<h3 class="subsubtitle method-title">username</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Database user name.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>@property (readonly) NSString *username</code></div>

    
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">OdbcConnection.h</code><br />
	</div>				
	
	
</div>
						
					</div>
					
					
					
					<div class="section section-methods">
						<a title="Class Methods" name="class_methods"></a>
						<h2 class="subtitle subtitle-methods">Class Methods</h2>
						
						<div class="section-method">
	<a name="//api/name/connectionWithDataSource:username:password:" title="connectionWithDataSource:username:password:"></a>
	<h3 class="subsubtitle method-title">connectionWithDataSource:username:password:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Creates a connection and connects to a database.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>+ (OdbcConnection *)connectionWithDataSource:(NSString *)<em>dataSource</em> username:(NSString *)<em>username</em> password:(NSString *)<em>password</em></code></div>

    
	
	<div class="method-subsection arguments-section parameters">
		<h4 class="method-subtitle parameter-title">Parameters</h4>
		
		<dl class="argument-def parameter-def">
			<dt><em>dataSource</em></dt>
			<dd><p>ODBC data source name</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>username</em></dt>
			<dd><p>database <a href="#//api/name/username">username</a></p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>password</em></dt>
			<dd><p>users password</p></dd>
		</dl>
		
	</div>
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p><a href="#//api/name/connected">connected</a> OdbcConnection</p>
	</div>
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">OdbcConnection.h</code><br />
	</div>				
	
	
</div>
						
					</div>
					
					
					
					<div class="section section-methods">
						<a title="Instance Methods" name="instance_methods"></a>
						<h2 class="subtitle subtitle-methods">Instance Methods</h2>
						
						<div class="section-method">
	<a name="//api/name/commit" title="commit"></a>
	<h3 class="subsubtitle method-title">commit</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Commits current transaction.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>- (void)commit</code></div>

    
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">OdbcConnection.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/connect:username:password:" title="connect:username:password:"></a>
	<h3 class="subsubtitle method-title">connect:username:password:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Connects to an ODBC data source.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>- (void)connect:(NSString *)<em>server</em> username:(NSString *)<em>username</em> password:(NSString *)<em>password</em></code></div>

    
	
	<div class="method-subsection arguments-section parameters">
		<h4 class="method-subtitle parameter-title">Parameters</h4>
		
		<dl class="argument-def parameter-def">
			<dt><em>server</em></dt>
			<dd><p>ODBC data source name</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>username</em></dt>
			<dd><p>database user name</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>password</em></dt>
			<dd><p>users password</p></dd>
		</dl>
		
	</div>
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">OdbcConnection.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/disconnect" title="disconnect"></a>
	<h3 class="subsubtitle method-title">disconnect</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Disconnects from database.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>- (void)disconnect</code></div>

    
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">OdbcConnection.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/execDirect:" title="execDirect:"></a>
	<h3 class="subsubtitle method-title">execDirect:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Executes SQL and returns an <a href="../Classes/OdbcStatement.html">OdbcStatement</a>.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>- (OdbcStatement *)execDirect:(NSString *)<em>sql</em></code></div>

    
	
	<div class="method-subsection arguments-section parameters">
		<h4 class="method-subtitle parameter-title">Parameters</h4>
		
		<dl class="argument-def parameter-def">
			<dt><em>sql</em></dt>
			<dd><p>sql text</p></dd>
		</dl>
		
	</div>
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p><a href="../Classes/OdbcStatement.html">OdbcStatement</a></p>
	</div>
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">OdbcConnection.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/initWithDataSource:username:password:" title="initWithDataSource:username:password:"></a>
	<h3 class="subsubtitle method-title">initWithDataSource:username:password:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Initializes connection and connects to a database.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>- (OdbcConnection *)initWithDataSource:(NSString *)<em>dataSource</em> username:(NSString *)<em>username</em> password:(NSString *)<em>password</em></code></div>

    
	
	<div class="method-subsection arguments-section parameters">
		<h4 class="method-subtitle parameter-title">Parameters</h4>
		
		<dl class="argument-def parameter-def">
			<dt><em>dataSource</em></dt>
			<dd><p>ODBC data source name</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>username</em></dt>
			<dd><p>database <a href="#//api/name/username">username</a></p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>password</em></dt>
			<dd><p>users password</p></dd>
		</dl>
		
	</div>
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p>a <a href="#//api/name/connected">connected</a> connection</p>
	</div>
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">OdbcConnection.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/newStatement" title="newStatement"></a>
	<h3 class="subsubtitle method-title">newStatement</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Creates new <a href="../Classes/OdbcStatement.html">OdbcStatement</a>.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>- (OdbcStatement *)newStatement</code></div>

    
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p><a href="../Classes/OdbcStatement.html">OdbcStatement</a></p>
	</div>
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">OdbcConnection.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/rollback" title="rollback"></a>
	<h3 class="subsubtitle method-title">rollback</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Rollbacks current transaction.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>- (void)rollback</code></div>

    
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">OdbcConnection.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/tablesCatalog:schema:table:tableTypes:" title="tablesCatalog:schema:table:tableTypes:"></a>
	<h3 class="subsubtitle method-title">tablesCatalog:schema:table:tableTypes:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Retrieves information about <a href="#//api/name/catalogs">catalogs</a>, <a href="#//api/name/schemas">schemas</a>, tables, and table types.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>- (OdbcStatement *)tablesCatalog:(NSString *)<em>catalog</em> schema:(NSString *)<em>schema</em> table:(NSString *)<em>table</em> tableTypes:(NSString *)<em>tableTypes</em></code></div>

    
	
	<div class="method-subsection arguments-section parameters">
		<h4 class="method-subtitle parameter-title">Parameters</h4>
		
		<dl class="argument-def parameter-def">
			<dt><em>catalog</em></dt>
			<dd><p>catalog to use</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>schema</em></dt>
			<dd><p>schema pattern to use</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>table</em></dt>
			<dd><p>table pattern to use</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>tableTypes</em></dt>
			<dd><p>table types to use</p></dd>
		</dl>
		
	</div>
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p><a href="../Classes/OdbcStatement.html">OdbcStatement</a></p>
	</div>
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">OdbcConnection.h</code><br />
	</div>				
	
	
</div>
						
					</div>
					
					
                    
                    
				</div>
				<div class="main-navigation navigation-bottom">
					<ul>
	<li><a href="../index.html">Index</a></li>
	<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
				</div>
				<div id="footer">
					<hr />
					<div class="footer-copyright">
						<p><span class="copyright">&copy; 2014 Datakonsulten AB. All rights reserved. (Last updated: 2014-01-22)</span><br />
						
						<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 961)</a>.</span></p>
						
					</div>
				</div>
			</div>
		</article>
		<script type="text/javascript">
			function jumpToChange()
			{
				window.location.hash = this.options[this.selectedIndex].value;
			}
			
			function toggleTOC()
			{
				var contents = document.getElementById('contents');
				var tocContainer = document.getElementById('tocContainer');
				
				if (this.getAttribute('class') == 'open')
				{
					this.setAttribute('class', '');
					contents.setAttribute('class', '');
					tocContainer.setAttribute('class', '');
					
					window.name = "hideTOC";
				}
				else
				{
					this.setAttribute('class', 'open');
					contents.setAttribute('class', 'isShowingTOC');
					tocContainer.setAttribute('class', 'isShowingTOC');
					
					window.name = "";
				}
				return false;
			}
			
			function toggleTOCEntryChildren(e)
			{
				e.stopPropagation();
				var currentClass = this.getAttribute('class');
				if (currentClass == 'children') {
					this.setAttribute('class', 'children open');
				}
				else if (currentClass == 'children open') {
					this.setAttribute('class', 'children');
				}
				return false;
			}
			
			function tocEntryClick(e)
			{
				e.stopPropagation();
				return true;
			}
			
			function init()
			{
				var selectElement = document.getElementById('jumpTo');
				selectElement.addEventListener('change', jumpToChange, false);
				
				var tocButton = document.getElementById('table_of_contents');
				tocButton.addEventListener('click', toggleTOC, false);
				
				var taskTreeItem = document.getElementById('task_treeitem');
				if (taskTreeItem.getElementsByTagName('li').length > 0)
				{
					taskTreeItem.setAttribute('class', 'children');
					taskTreeItem.firstChild.setAttribute('class', 'disclosure');
				}
				
				var tocList = document.getElementById('toc');
				
				var tocEntries = tocList.getElementsByTagName('li');
				for (var i = 0; i < tocEntries.length; i++) {
					tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
				}
				
				var tocLinks = tocList.getElementsByTagName('a');
				for (var i = 0; i < tocLinks.length; i++) {
					tocLinks[i].addEventListener('click', tocEntryClick, false);
				}
				
				if (window.name == "hideTOC") {
					toggleTOC.call(tocButton);
				}
			}
			
			window.onload = init;
			
			// If showing in Xcode, hide the TOC and Header
			if (navigator.userAgent.match(/xcode/i)) {
				document.getElementById("contents").className = "hideInXcode"
				document.getElementById("tocContainer").className = "hideInXcode"
				document.getElementById("top_header").className = "hideInXcode"
			}
			
		</script>
	</body>
</html>